package com.ncs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ncs.pojo.Admin;
import com.ncs.service.AdminService;
import com.ncs.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【admin】的数据库操作Service实现
* @createDate 2022-09-05 13:42:02
*/
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin>
    implements AdminService{

    @Autowired
    AdminMapper adminMapper;

    @Override
    public List<Admin> search(String username) {

        System.out.println("===service");
        List<Admin> admins = adminMapper.search(username);
        System.out.println("service===");
        return admins;
    }
}




